/**
 * 
 */
package clids.ex2.actions;

import clids.ex2.orders.AbsOrder;
import clids.ex2.orders.BadOrderNameException;
import clids.ex2.orders.FileOrder;
import clids.ex2.orders.ModOrder;
import clids.ex2.orders.OrderInterface;
import clids.ex2.orders.SizeOrder;

/**
 * @author Li0r
 *
 */
public class ActionFactory {

	/**
	 * 
	 */
	public static AbstractAction GetAction(String nameOfAction) throws BadOrderNameException {
		switch (nameOfAction){
		case "print_data":
			return new ActionPrintData();
		case "print_name":
			return new ActionPrintName();
		case "copy":
			return new ActionCopy();
		case "exec":
			return new ActionExec();
		case "write":
			return new ActionWrite();
		case "last_mod":
			return new ActionLastMod();
		}

}
